<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>叩丁狼客户关系管理系统-商品分类管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/productSort.js"></script>
</head>

<!--商品分类列表-->

<div id="dic_layout" class="easyui-layout" fit="true">
    <div data-options="region:'west',split:false,title:'商品分类'" style="width:260px;">
        <table id="pSort_datagrid"></table>
    </div>
    <div data-options="region:'center'">
        <table id="cls_datagrid"></table>
    </div>
</div>


<!--商品分类工具栏-->
<div id="pSort_tb">
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="pSort_add"
       data-options="iconCls:'icon-add',plain:true">添加</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="pSort_edit"
       data-options="iconCls:'icon-edit',plain:true">编辑</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="pSort_remove"
       data-options="iconCls:'icon-remove',plain:true">删除</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="pSort_reload"
       data-options="iconCls:'icon-reload',plain:true">刷新</a>
</div>

<div id="cls_tb">
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="cls_add"
       data-options="iconCls:'icon-add',plain:true">添加</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="cls_edit"
       data-options="iconCls:'icon-edit',plain:true">编辑</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="cls_remove"
       data-options="iconCls:'icon-remove',plain:true">删除</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="cls_reload"
       data-options="iconCls:'icon-reload',plain:true">刷新</a>
</div>

<!--商品分类的添加与编辑对话框-->
<div id="pSort_dialog">
    <form id="pSort_editForm" method="post">

        <input type="hidden" name="id" id="pSortId">

        <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
            <tr>
                <td>一级分类:</td>
                <td><input class="easyui-textbox" name="name"/></td>
            </tr>
        </table>
    </form>
</div>


<!--分类的添加与编辑对话框-->
<div id="cls_dialog">
    <form id="cls_editForm" method="post">

        <input type="hidden" name="id" id="clsId">

        <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
            <tr>
                <td>分类编号:</td>
                <td><input class="easyui-textbox" name="sn"/></td>
            </tr>
            <tr>
                <td>分类名称:</td>
                <td><input class="easyui-textbox" name="name"/></td>
            </tr>
            <tr>
                <td>所属分类:</td>
                <td>
                    <input class="easyui-combobox" name="superior.id" data-options="
                        url:'/productSort/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'

                    ">
                </td>


            </tr>
        </table>
    </form>
</div>

<!--编辑与添加对话框的按钮-->
<div id="pSort_bb">
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-save" data-cmd="pSort_save">保存</a>
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-cancel" data-cmd="pSort_cancel">关闭</a>
</div>

<!--编辑与添加对话框的按钮-->
<div id="cls_bb">
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-save" data-cmd="cls_save">保存</a>
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-cancel" data-cmd="cls_cancel">关闭</a>
</div>
</body>
</html>
